﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemServices
{
    class test2
    {
        public readonly ILogger<test2> logger;
        public test2(ILogger<test2> logger)
        {
            this.logger = logger;
        }
        public void WLog()
        {
            logger.LogDebug("开始执行FTP同步");
            logger.LogDebug("连接FTP成功");
            logger.LogWarning("查找FTP失败，重试第一次");
            //......
            logger.LogWarning("查找FTP失败，重试第二次");
            logger.LogError("查找FTP最终失败");

          


        }
    }
}
